<ion-header>
    <ion-navbar>
      <ion-title>资源申请</ion-title>
    </ion-navbar>
  </ion-header>
  <ion-content>
    <ion-list class="approval-list">
      <ion-list-header>
        <span class="approval-list-header-text">申请信息</span>
      </ion-list-header>
      <ion-item>
          <span class="bhq-title">资源类型: </span>
          <span class="bhq-content">{{gzzysq.editRow.szylx}}</span>
      </ion-item>
      <ion-item>
          <span class="bhq-title">使用人: </span>
          <span class="bhq-content">{{gzzysq.editRow.ssyr}}</span>
      </ion-item>
      <ion-item>
          <span class="bhq-title">申请原因: </span>
          <span class="bhq-content">{{gzzysq.editRow.ssqyy}}</span>
      </ion-item>
      <ion-item>
          <span class="bhq-title">联系方式: </span>
          <span class="bhq-content">{{gzzysq.editRow.slxfs}}</span>
      </ion-item>
      <ion-item>
          <span class="bhq-title">所属项目: </span>
          <span class="bhq-content">{{gzzysq.editRow.gzzysq}}</span>
      </ion-item>
      <ion-item>
          <span class="bhq-title">申请时间: </span>
          <span class="bhq-content">{{gzzysq.editRow.dsqsj | asDate}}</span>
      </ion-item>
      <ion-item>
        <span class="bhq-title">使用开始时间: </span>
        <span class="bhq-content">{{gzzysq.editRow.dsykssj | asDate}}</span>
        </ion-item>
        <ion-item>
            <span class="bhq-title">使用结束时间: </span>
            <span class="bhq-content">{{gzzysq.editRow.dsyjssj | asDate}}</span>
        </ion-item>
        <ion-item>
            <span class="bhq-title">使用结束时间: </span>
            <span class="bhq-content">{{gzzysq.editRow.dsyjssj | asDate}}</span>
        </ion-item>
    </ion-list>
  
    <ion-list class="approval-list">
      <ion-list-header>
        <span class="approval-list-header-text" id="tab2">科长审核</span>
      </ion-list-header>
      <div *ngIf="gzzysq.process.usertask2!=null">
        <div *ngFor="let item of  gzzysq.process.usertask2.history">
          <ion-item>
            <ion-label class="bhq-content">{{item.optcontent}}</ion-label>
          </ion-item>
          <ion-item class="bhq-last-child">
            <ion-label class="bhq-content">签批人: {{item.optassigneesname}}</ion-label>
            <ion-label class="bhq-content">时间:{{item.opttime | asDate}}</ion-label>
          </ion-item>
        </div>
  
        <ion-item class="bhq-last-child" *ngIf="gzzysq.process.usertask2.editRow!=null && gzzysq.proauth.kzsh  && gzzysq.process.usertask2.userEdit">
          <ion-label class="bhq-title">签批意见:</ion-label>
          <ion-textarea class="zs-answer-inn" aria-rowspan="5" [(ngModel)]="gzzysq.process.usertask2.editRow.optcontent">
          </ion-textarea>
        </ion-item>
      </div>
    </ion-list>
  
    <ion-list class="approval-list">
      <ion-list-header>
        <span class="approval-list-header-text" id="tab3">分管领导审核</span>
      </ion-list-header>
      <div *ngIf="gzzysq.process.usertask3!=null">
        <div *ngFor="let item of  gzzysq.process.usertask3.history">
          <ion-item>
            <ion-label class="bhq-content">{{item.optcontent}}</ion-label>
          </ion-item>
          <ion-item class="bhq-last-child">
            <ion-label class="bhq-content">签批人: {{item.optassigneesname}}</ion-label>
            <ion-label class="bhq-content">时间:{{item.opttime | asDate}}</ion-label>
          </ion-item>
        </div>
  
        <ion-item class="bhq-last-child" *ngIf="gzzysq.process.usertask3.editRow!=null && gzzysq.proauth.fgldsh  && gzzysq.process.usertask3.userEdit">
          <ion-label class="bhq-title">签批意见:</ion-label>
          <ion-textarea class="zs-answer-inn" aria-rowspan="5" [(ngModel)]="gzzysq.process.usertask3.editRow.optcontent">
          </ion-textarea>
        </ion-item>
      </div>
    </ion-list>
  
    <ion-list class="approval-list" >
      <ion-list-header>
        <span class="approval-list-header-text" id="tab4">办公室主任审核</span>
      </ion-list-header>
      <div *ngIf="gzzysq.process.usertask4!=null">
        <div *ngFor="let item of  gzzysq.process.usertask4.history">
          <ion-item>
            <ion-label>{{item.optcontent}}</ion-label>
          </ion-item>
          <ion-item class="bhq-last-child">
            <ion-label class="bhq-content">签批人: {{item.optassigneesname}}</ion-label>
            <ion-label class="bhq-content">时间:{{item.opttime | asDate}}</ion-label>
          </ion-item>
        </div>
  
        <ion-item class="bhq-last-child" *ngIf="gzzysq.process.usertask4.editRow!=null && gzzysq.proauth.bgszr  && gzzysq.process.usertask4.userEdit">
          <ion-label class="bhq-title">签批意见:</ion-label>
          <ion-textarea class="zs-answer-inn" aria-rowspan="5" [(ngModel)]="gzzysq.process.usertask4.editRow.optcontent">
          </ion-textarea>
        </ion-item>
      </div>
    </ion-list>
  </ion-content>
  
  <ion-footer class="bhq-bpm-button">
    <div class="footer-btn" *ngIf="gzzysq.auth.opt_th" (click)="gzzysq.getBackTask(null,null);">
      <ion-icon name="arrow-dropleft-circle" style="font-size:2em;color: #5477b0;"></ion-icon>
      <p>退回</p>
    </div>
    <div class="footer-btn" *ngIf="gzzysq.auth.opt_bc" (click)="gzzysq.bpmSave(null);">
      <ion-icon name="lock" style="font-size:2em;color: #5477b0;"></ion-icon>
      <p>保存</p>
    </div>
    <div class="footer-btn" *ngIf="gzzysq.auth.opt_tj" (click)="gzzysq.getNextTask(null,null);">
      <ion-icon name="arrow-dropright-circle" style="font-size:2em;color: #5477b0;"></ion-icon>
      <p>通过</p>
    </div>
    <!-- <div class="footer-more" (click)="goProcessPage();">...</div> -->
    <div class="footer-btn" (click)="goProcessPage();">
      <ion-icon name="keypad" style="font-size:2em;color: #5477b0;"></ion-icon>
      <p>更多</p>
  </div>
  </ion-footer>